floor

pure function floor(): decimal

Round this decimal towards zero, to the next whole number.

Examples:

  • (-0.4).floor() returns 0

  • (-1.6).floor() returns -1

  • (1.99999999999999999999).floor() returns 1

Since

0.9.1